package com.cx.mapper;

import com.cx.dto.HotelPolicy;
import com.cx.pojo.HotelPolicyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface HotelPolicyMapper {
    int countByExample(HotelPolicyExample example);

    int deleteByExample(HotelPolicyExample example);

    int insert(HotelPolicy record);

    int insertSelective(HotelPolicy record);

    List<HotelPolicy> selectByExample(HotelPolicyExample example);

    int updateByExampleSelective(@Param("record") HotelPolicy record, @Param("example") HotelPolicyExample example);

    int updateByExample(@Param("record") HotelPolicy record, @Param("example") HotelPolicyExample example);
    List<HotelPolicy>selectPolicyByHotelName(String hotelName);

}